package cn.iocoder.yudao.module.book.controller.app.classes.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "小程序 - 班级成员 Response VO")
public class AppClassMemberRespVO {

    @Schema(description = "成员ID", example = "1")
    private Long memberId;

    @Schema(description = "用户ID", example = "123")
    private Long userId;

    @Schema(description = "用户名称", example = "张三")
    private String name;

    @Schema(description = "用户昵称", example = "小张")
    private String nickname;

    @Schema(description = "用户头像", example = "https://example.com/avatar.jpg")
    private String avatar;

    @Schema(description = "是否是老师", example = "true")
    private Boolean isTeacher;

    @Schema(description = "是否是班主任", example = "false")
    private Boolean isOwner;

    @Schema(description = "是否是当前用户", example = "false")
    private Boolean isCurrentUser;

    @Schema(description = "加入时间")
    private LocalDateTime joinTime;

    @Schema(description = "阅读统计")
    private ReadingStats readingStats;

    @Data
    @Schema(description = "阅读统计")
    public static class ReadingStats {
        @Schema(description = "已读书籍数", example = "10")
        private Integer booksRead;

        @Schema(description = "活跃天数", example = "30")
        private Integer daysActive;

        @Schema(description = "打卡次数", example = "25")
        private Integer checkInCount;
    }
}
